package com.allqj.sfx.ddd.member.infrastructure.po;

import com.allqj.sfx.infrastructure.po.BaseDO;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author sjw
 * @className FlowInstanceTaskDO
 * @date 2022/7/21 18:47
 * @description: 审批流-流程实例任务 data object
 */
@Entity
@Table(name = "flow_instance_task")
public class FlowInstanceTaskDO extends BaseDO {
    @Id
    @GenericGenerator(name = "autoId", strategy = "native")
    @GeneratedValue(generator = "autoId")
    private Integer id;
    // 流程定义id
    private Integer flowDefId;
    // 流程定义id
    private Integer flowTaskDefId;
    // 任务步骤
    private Integer taskStep;
    // 流程实例id
    private Integer flowInstanceId;
    // 流程实例id
    private Integer nextTaskId;
    // 任务节点审批角色类型
    private Integer approverType;
    // 任务节点审批角色定义json array
    private String approverDef;
    // 状态
    private Integer status;
    // 实际审批人
    private Integer approverId;
    // 实际审批人姓名
    private String approverName;

    // 实际审批人部门
    private Integer approverDept;

    // 实际审批时间
    private Date approverTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFlowDefId() {
        return flowDefId;
    }

    public void setFlowDefId(Integer flowDefId) {
        this.flowDefId = flowDefId;
    }

    public Integer getFlowTaskDefId() {
        return flowTaskDefId;
    }

    public void setFlowTaskDefId(Integer flowTaskDefId) {
        this.flowTaskDefId = flowTaskDefId;
    }

    public Integer getTaskStep() {
        return taskStep;
    }

    public void setTaskStep(Integer taskStep) {
        this.taskStep = taskStep;
    }

    public Integer getFlowInstanceId() {
        return flowInstanceId;
    }

    public void setFlowInstanceId(Integer flowInstanceId) {
        this.flowInstanceId = flowInstanceId;
    }

    public Integer getNextTaskId() {
        return nextTaskId;
    }

    public void setNextTaskId(Integer nextTaskId) {
        this.nextTaskId = nextTaskId;
    }

    public Integer getApproverType() {
        return approverType;
    }

    public void setApproverType(Integer approverType) {
        this.approverType = approverType;
    }

    public String getApproverDef() {
        return approverDef;
    }

    public void setApproverDef(String approverDef) {
        this.approverDef = approverDef;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getApproverId() {
        return approverId;
    }

    public void setApproverId(Integer approverId) {
        this.approverId = approverId;
    }

    public String getApproverName() {
        return approverName;
    }

    public void setApproverName(String approverName) {
        this.approverName = approverName;
    }

    public Integer getApproverDept() {
        return approverDept;
    }

    public void setApproverDept(Integer approverDept) {
        this.approverDept = approverDept;
    }

    public Date getApproverTime() {
        return approverTime;
    }

    public void setApproverTime(Date approverTime) {
        this.approverTime = approverTime;
    }
}
